package com.springboot.base.common;

public class CommonError {

    private Integer code;

    private String errMsg;

    public CommonError(Integer code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }

    public CommonError(EmBusinessError error){
        this.code = error.getCode();
        this.errMsg = error.getMsg();
    }



    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
